package com.example.music.util;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Result
 * Package: com.example.music.util
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-04-11
 * Time: 15:25
 */
@Data
public class Result<T> {
    //统一返回的结果集

    //状态码
    private int status;

    //返回的信息
    private String message;

    //返回的数据集合
    private T data;

    //构造器
    public Result(int status, String message, T data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }
}
